<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>模版数据管理 HDSysCms</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui/css/layui.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/style/admin.css" media="all">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/dtree.css">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/admin/layui_ext/dtree/font/dtreefont.css">
<link rel="stylesheet" href="<?php echo getcdnurlhost() ?>/markdown/css/editormd.min.css" />
</head>
<body data="HDSYSCMS 2021本系统受国家版权局保护请勿破解或者二次开发传播">
<div class="layui-fluid1">
<div class="layui-row layui-col-space158">
<div class="layui-col-md12">
<div class="layui-card">
<div style="position: fixed;z-index: 999;background-color: #fff;width: 100%;box-shadow: 0px 1px 5px #2e8cee33;" class="layui-tab layui-tab-brief" lay-filter="component-tabs-hash">
<ul class="layui-tab-title">
<li class="layui-this" lay-id="hdsysatable">页面SEO设置</li>
</ul>
<div style="overflow-y: scroll;height: calc(100vh - 73px);" class="layui-tab-content layui-card-body1">
<div style="height: 100%;" class="">
<div style="height: 100%;display: flex;align-content: center;">
<form style="width: 800px;margin: 0 auto;display: flex;flex-direction: column;justify-content: center;" class="layui-form" action="">
<div class="layui-form-item">
<label class="layui-form-label">SEO标题</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="title" value="<?php echo $param_array['info']['title'] ?>" placeholder="网站显示的标题 title 80字内" class="layui-input">
</div>
<?php if ($param_seo_array) { ?>
<div class="layui-form-mid layui-word-aux"><?php echo $param_seo_array['title']; ?></div>
<?php } ?>
</div>
<div class="layui-form-item">
<label class="layui-form-label">SEO关键词</label>
<div class="layui-input-inline" style="width: 300px;">
<input type="text" name="keywords" value="<?php echo $param_array['info']['keywords'] ?>" size="10" placeholder="关键词keywords,隔开 100字内" class="layui-input">
</div>
<?php if ($param_seo_array) { ?>
<div class="layui-form-mid layui-word-aux"><?php echo $param_seo_array['keywords']; ?></div>
<?php } ?>
</div>
<div class="layui-form-item">
<label class="layui-form-label">SEO页面描述</label>
<div class="layui-input-inline" style="width: 500px;">
<input type="text" name="description" value="<?php echo $param_array['info']['description'] ?>" placeholder="网站页面描述 description，200字内" class="layui-input">
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
<?php if ($param_seo_array) { ?>
<div class="layui-form-item">
<label class="layui-form-label"></label>
<div class="layui-form-mid layui-word-aux"><?php echo $param_seo_array['description']; ?></div>
</div>
<?php } ?>
<div class="layui-form-item">
<label class="layui-form-label"></label>
<div class="layui-input-block">
<button class="layui-btn" lay-submit lay-filter="post">保存修改</button>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label"></label>
</div>
<div class="layui-form-item">
<label class="layui-form-label">常用:</label>
{$config.setup.seotitle}
{$config.setup.seokeywords}
{$config.setup.seodescription}
{$config.setup.name}
{$get.search}
{$data.name}
{$data.seokeywords}
{$data.seodescription}
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="<?php echo getcdnurlhost() ?>/admin/layui/layui.js"></script>
<script>layui.config({base: '<?php echo getcdnurlhost() ?>/admin/'}).use(['form', 'layer', 'element', 'flow', 'upload'], function() {var admin=layui.admin,$=layui.$,form=layui.form,upload=layui.upload,element=layui.element;var flow=layui.flow;flow.lazyimg();form.on('submit(post)', function(data) {data=data.field;layer.load(1);$.ajax({type: "post",url: 'index.php?m=manage&c=Div&a=mode_set_seo_ajax',data: {file: '<?php echo plug_get('file') ?>',dir: '<?php echo plug_get('dir') ?>',title: data.title,keywords: data.keywords,description: data.description,},dataType: "json",success: function(ret) {layer.closeAll('loading');if (ret.code==1000) {if (top.document.getElementById('iframe')==null) {layer.msg(ret.msg + ',正在刷新页面');setTimeout(()=> {var index=parent.layer.getFrameIndex(window.name);parent.layer.close(index);window.location.reload();}, 800);return false;}layer.confirm(ret.msg, {btn: ['确定']}, function() {top.document.getElementById('iframe').contentWindow.location.reload();var index=parent.layer.getFrameIndex(window.name);parent.layer.close(index);});} else {layer.msg(ret.msg);}}});return false;});var uploadInst=upload.render({elem: '#setimges',url: 'index.php?m=manage&c=UpFile&a=UpTemplates&dl=' + $('#imges').val(),before: function(obj) {layer.load(0);},done: function(res) {layer.closeAll();if (res.code==-1) {return layer.msg(res.msg);}console.log(res);$('#imges-img').attr('src', '../templates/<?php echo bs_lib::get_configs_value('template', 'current') ?>/statics/' + res.url);$('#imges').val(res.url);},error: function() {layer.closeAll();layer.alert('上传失败')}});var uploadInst=upload.render({elem: '#seteimges',url: 'index.php?m=manage&c=UpFile&a=UpTemplates&dl=' + $('#eimges').val(),before: function(obj) {layer.load(0);},done: function(res) {layer.closeAll();if (res.code==-1) {return layer.msg(res.msg);}console.log(res);$('#eimges-img').attr('src', '../templates/<?php echo bs_lib::get_configs_value('template', 'current') ?>/statics/' + res.url);$('#eimges').val(res.url);},error: function() {layer.closeAll();layer.alert('上传失败')}});});</script>
<script charset="utf-8" src="<?php echo getcdnurlhost() ?>/kindeditor/kindeditor-all-min.js"></script>
<script charset='utf-8' src='".getcdnurlhost()."/kindeditor/app.js'></script>
</body>
</html>